<?php

namespace app\api\model;

use think\exception\ErrorException;
use think\Model;

class Message extends Model
{
    protected $autoWriteTimestamp = true;

    public function UserInfo(){
        return $this->belongsTo('users');
    }
    public function send_qq($users_id,$qq,$msg){
        //send_qq_msg($qq,$msg);
        return $this->save(['users_id'=>$users_id,'content'=>$msg]);
    }
}